import request from '@/utils/request'
const groupName = 'blog-collection'

export function collection(data) {
  return request({
    url: `/${groupName}/collection/${data}`,
    method: 'post'
  })
}

export function getCollection(data) {
  return request({
    url: `/${groupName}/getCollection/${data}`,
    method: 'get'
  })
}

export function cancelCollection(data) {
  return request({
    url: `/${groupName}/cancelCollection/${data}`,
    method: 'post'
  })
}

export function getByPage(data) {
  return request({
    url: `/${groupName}/getByPage`,
    method: 'post',
    data
  })
}

